require("../helper-hardhat-config")

module.exports = async ({ getNamedAccounts, deployments }) => {
    if (devlopmentChains.includes(network.name)) {
        const { firstAccount } = await getNamedAccounts()
        const { deploy } = deployments
        await deploy("MockV3Aggregator", {
            from: firstAccount,
            args: [DECIMAL, INITIAL_ANSWER],
            log: true
        })
    } else {
        console.log("This is not a devlopment chain")
    }



}
module.exports.tags = ["all", "mocks"]